package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 用户收藏表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_star")
public class UserStar implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 收藏项id
     */
    @TableField(value = "star_options_id")
    private Integer starOptionsId;

    /**
     * 收藏类型 1线索 2客户 3联系人 4商机 5报价单 6合同 7回款 8发票 9回访 10产品 11工单 12进销存
     */
    @TableField(value = "`type`")
    private Integer type;

    private static final long serialVersionUID = 1L;
}